package com.ch.playandroid.fragment

import androidx.fragment.app.viewModels
import com.ch.common.base.fragment.BaseFragment
import com.ch.playandroid.R
import com.ch.playandroid.databinding.FragmentSysterBinding
import com.ch.playandroid.viewmodel.SystemViewModel
import com.king.view.supertextview.SuperTextView

class SysterFragment : BaseFragment<SystemViewModel, FragmentSysterBinding>() {

    override val viewModel: SystemViewModel
            by viewModels()

    override fun getLayoutResID(): Int {
        return R.layout.fragment_syster
    }

    override fun initView() {
        mBinding.superTextView.dynamicStyle = SuperTextView.DynamicStyle.CHANGE_COLOR

        mBinding.superTextView.setOnDynamicListener(object : SuperTextView.OnDynamicListener {
            override fun onChange(position: Int) {
            }

            override fun onCompile() {
            }
        })
        mBinding.superTextView.setOnClickListener {
            mBinding.superTextView.start()
        }
    }

    override fun initObserve() {
    }

    override fun bindViewModel() {
    }
}